package com.lagou.service.impl;

import com.lagou.dao.EmpWithDeptDao;
import com.lagou.domain.EmpWithDept;
import com.lagou.service.EmpWithDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpWithDeptImpl implements EmpWithDeptService {

    @Autowired
    private EmpWithDeptDao empWithDeptDao;

    @Override
    public List<EmpWithDept> findAll() {

        List<EmpWithDept> empWithDepts = empWithDeptDao.findAll();
        return empWithDepts;
    }
}
